import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    name: "",

  
  },
  mutations: {
    add(state, name) {
      // console.log(name)
      state.name = name
      
    },


    dl(state) {
      state.name =""
    }
 
  },  
  actions: {

  },
  getters: {
    name: state => state.name,



  },
  modules: {
    
  },
  plugins: [persistedState()]
})
